package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
@Setter
public class Discuss extends BaseDomain{

    private Long parentId;//父评论id

    private User user;//当前登录参与评论的用户

    private Long articelId;//所评论的文章id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date discussTime;//评论时间

    private String discussContent;//评论内容

    private List<Discuss> discusses =new ArrayList<>();
}